-- GENERATED SPELL FOR [Grove Walker] --


function spell0_31228(pUnit, Event) --@Rejuvenation,Heal--
pUnit:FullCastSpellOnTarget(15981,pUnit)
pUnit:RegisterEvent('Sorts_31228', 12000, 1)
end

function spell1_31228(pUnit, Event) --@Thorns,n/a--
pUnit:FullCastSpellOnTarget(35361,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31228', 566, 1)
end

function Sorts_31228(pUnit, Event)
local choix_sorts_31228 = math.random(0, 1)
if choix_sorts_31228 == 0 then
pUnit:RegisterEvent('spell0_31228', 1, 1)
end
if choix_sorts_31228 == 1 then
pUnit:RegisterEvent('spell1_31228', 1, 1)
end
end

function mob31228_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_31228', math.random(1500, 3000), 1)
end

function mob31228_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31228_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31228_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(31228, 1, 'mob31228_Action')
RegisterUnitEvent(31228, 2, 'mob31228_Leave')
RegisterUnitEvent(31228, 3, 'mob31228_Kill')
RegisterUnitEvent(31228, 4, 'mob31228_Die')
